package com.shinewind.info.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shinewind.info.mapper.IModelTypeMapper;
import com.shinewind.info.service.IModelTypeService;
import com.shinewind.pojo.entity.ModelType;
import org.springframework.stereotype.Service;

@Service
public class ModelTypeServiceImpl extends ServiceImpl<IModelTypeMapper, ModelType> implements IModelTypeService {
    @Override
    public String getTypeNameByTypeId(Long typeId) {
        ModelType modelType = this.lambdaQuery().eq(ModelType::getTypeId,typeId).one();
        return modelType.getTypeName();
    }
}
